﻿using System;
using System.Runtime.Serialization;

namespace codeparser.net.v2.Exceptions
{
    /// <summary>
    /// Thrown when a tag is not found.
    /// </summary>
    [Serializable]
    public class TagNotFoundException : CodeparserException
    {
        /// <summary>
        /// Initializes a new instance of the TagNotFoundException type.
        /// </summary>
        public TagNotFoundException()
            : base()
        {
        }

        /// <summary>
        /// Initializes a new instance of the TagNotFoundException type.
        /// </summary>
        /// <param name="message">The message.</param>
        public TagNotFoundException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Initializes a new instance of the TagNotFoundException type.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="innerException">The inner exception.</param>
        public TagNotFoundException(string message, Exception innerException)
            : base(message, innerException)
        {
        }

        /// <summary>
        /// Initializes a new instance of the TagNotFoundException type.
        /// </summary>
        /// <param name="info">The serialization info.</param>
        /// <param name="context">The context.</param>
        protected TagNotFoundException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}